<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "listen_question".
 *
 * @property integer $qid
 * @property integer $tid
 * @property string $content
 * @property string $answer
 * @property string $time
 */
class Listen_question extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'listen_question';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['tid', 'content', 'answer', 'time'], 'required'],
            [['tid', 'time'], 'integer'],
            [['content'], 'string'],
            [['answer'], 'string', 'max' => 20],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'qid' => 'Qid',
            'tid' => 'Tid',
            'content' => 'Content',
            'answer' => 'Answer',
            'time' => 'Time',
        ];
    }
}
